function closeDialogIfSucess(xhr, status, args, dialogWidget, dialogId) {
	if (args.validationFailed || args.KEEP_DIALOG_OPENED) {
		jQuery('#'+dialogId).effect("bounce", {times : 4, distance : 20}, 100);
	} else {
		dialogWidget.hide();
	}
	
}

function somenteNumero() { 
	if (event.keyCode<48 || event.keyCode>57) { 
		return false; 
		} 
} 



function SubstituiVirgulaPorPonto(campo)
{
	campo.value = campo.value.replace(",",".");
}


